﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RushTracker.Core.Models.Torrents
{
    public class Peer
    {
        public Peer()
        {
            Id = -1;
            Started = DateTime.Now;

            Downloaded = 0;
            Uploaded = 0;
            Remaining = 0;
        }

        public virtual int Id { get; set; }
        public virtual Information Information { get; set; }
        public virtual string PeerId { get; set; }
        public virtual string IPAddress { get; set; }
        public virtual int Port { get; set; }
        public virtual ulong Downloaded { get; set; }
        public virtual ulong Uploaded { get; set; }
        public virtual ulong Remaining { get; set; }
        public virtual bool Seeder { get; set; }
        public virtual DateTime Started { get; set; }
        public virtual DateTime? LastAction { get; set; }
        public virtual bool Connectable { get; set; }
        public virtual User User { get; set; }
        public virtual string Agent { get; set; }
        public virtual DateTime? Finished { get; set; }

    }
}
